package com.yunfeisoft.business.model;

import com.yunfeisoft.common.base.BaseModel;
import com.yunfeisoft.common.sql.record.TransientField;
import com.yunfeisoft.common.utils.DateUtils;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * ClassName: DischargeElderPreparation
 * Description: 出院长者准备表
 *
 * @Author: Jackie liu
 * Date: 2020-05-22
 */
@Entity
@Table(name = "TT_DISCHARGE_ELDER_PREPARATION")
public class DischargeElderPreparation extends BaseModel implements Serializable {

    /**
     * Field serialVersionUID: 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 老人入住关联id
     */
    @Column
    private String elderId;

    @TransientField
    private String elderName;

    public String getElderName() {
        return elderName;
    }

    public void setElderName(String elderName) {
        this.elderName = elderName;
    }

    /**
     * 离院日期
     */
    @Column
    private Date leaveDate;

    /**
     * 填写表格
     */
    @Column
    private String fillForm;

    /**
     * 记录本
     */
    @Column
    private String notebook;

    /**
     * 电表度数
     */
    @Column
    private Integer powerMeter;

    /**
     * 物品回收
     */
    @Column
    private String itemRecycle;

    /**
     * 归还长者
     */
    @Column
    private String returnElder;

    /**
     * 房间卫生
     */
    @Column
    private String roomHygiene;

    /**
     * 病例整理
     */
    @Column
    private String medicalRecords;

    /**
     * 其他特殊情况
     */
    @Column
    private String otherSpecialCircumstances;


    public String getElderId() {
        return elderId;
    }

    public void setElderId(String elderId) {
        this.elderId = elderId;
    }

    public Date getLeaveDate() {
        return leaveDate;
    }

    public String getLeaveDateStr() {
        if (leaveDate == null) {
            return null;
        }
        return DateUtils.dateToString(leaveDate);
    }

    public void setLeaveDate(Date leaveDate) {
        this.leaveDate = leaveDate;
    }

    public String getFillForm() {
        return fillForm;
    }

    public void setFillForm(String fillForm) {
        this.fillForm = fillForm;
    }

    public String getNotebook() {
        return notebook;
    }

    public void setNotebook(String notebook) {
        this.notebook = notebook;
    }

    public Integer getPowerMeter() {
        return powerMeter;
    }

    public void setPowerMeter(Integer powerMeter) {
        this.powerMeter = powerMeter;
    }

    public String getItemRecycle() {
        return itemRecycle;
    }

    public void setItemRecycle(String itemRecycle) {
        this.itemRecycle = itemRecycle;
    }

    public String getReturnElder() {
        return returnElder;
    }

    public void setReturnElder(String returnElder) {
        this.returnElder = returnElder;
    }

    public String getRoomHygiene() {
        return roomHygiene;
    }

    public void setRoomHygiene(String roomHygiene) {
        this.roomHygiene = roomHygiene;
    }

    public String getMedicalRecords() {
        return medicalRecords;
    }

    public void setMedicalRecords(String medicalRecords) {
        this.medicalRecords = medicalRecords;
    }

    public String getOtherSpecialCircumstances() {
        return otherSpecialCircumstances;
    }

    public void setOtherSpecialCircumstances(String otherSpecialCircumstances) {
        this.otherSpecialCircumstances = otherSpecialCircumstances;
    }


}